function saveClusteringData(filename, data)

% SAVEDATA save a matrix as a vector of Array1D
% 
% Shaobo Hou

temp = ['saving samples to ' filename ' \n'];
fprintf(temp);

fid = fopen(filename, 'wt');
for i = 1:size(data, 1)
    saveVector(fid, data(i, :));
end
fclose(fid);
